<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{$site_home}{$site_title}</title>
    <meta name="keywords" content="{$site_keywords}">
    <meta name="description" content="{$site_description}">
</head>
<body>
    {include file="cn/include/header"}
    <div>
        <h2>自定义全局变量</h2>
        <div>
            客服电话：{:isset($site_param_1)?$site_param_1:''}<br>
            备案号码：{:isset($site_param_2)?$site_param_2:''}<br>
            联系邮箱：{:isset($site_param_3)?$site_param_3:''}<br>
            详细地址：{:isset($site_param_4)?$site_param_4:''}<br>
            公司坐标：{:isset($site_param_5)?$site_param_5:''}<br>
            网站Logo：{:isset($site_param_11)?$site_param_11:''}<br>
            附件内容：{:isset($site_param_12)?$site_param_12:''}<br>
            版本号：{:isset($site_param_25)?$site_param_25:''}<br>
            说明：一般情况下可以直接使用全局变量，为了不报错建议使用以上方法调用。（详情查看模板源码）
        </div>
    </div>
    <div>
        <h2>Banner功能演示(图片切换功能需要自己编写)</h2>
        {assign name="list" value=":sp_article(51)"}
        {volist name="list" id="vo"}
            <div>
                <table>
                    <tr>
                        <td><img src="{:sf_getimg($vo['wsarticle_image'])}" height="50"></td>
                        <td>
                            <div>标题：{$vo['wsarticle_title']}</div>
                            <div>链接：{$vo['wsarticle_page']}</div>
                            <div>描述：{$vo['wsarticle_desc']}</div>
                        </td>
                    </tr>
                </table>
            </div>
        {/volist}
    </div>
    <hr>
    <div style="overflow: hidden;">
        <h2>最新产品（取10条）</h2>
        {assign name="list" value=":sp_article(53, 0, 10)"}
        {volist name="list" id="vo" key="key"}
        <div style="float: left;">
            <a href="{:sf_url('/products', $vo)}" target="_blank">
                <img src="{:sf_getimg($vo['wsarticle_image'])}" width="100" height="80">
                <div>{$vo['wsarticle_title']}</div>
            </a>
        </div>
        {/volist}
    </div>
    <hr>
    <div>
        <h2>最新新闻（取10条）</h2>
        {assign name="list" value=":sp_article(45, 0, 10)"}
        {volist name="list" id="vo" key="key"}
        <div>
            {$vo['wsarticle_id']}、<a href="{:sf_url('/news', $vo)}" target="_blank">{$vo['wsarticle_title']}</a>
        </div>
        {/volist}
    </div>
    <hr>
    <div>
        <h2>推荐新闻（取10条）</h2>
        {assign name="list" value=":sp_article(0, 0, 10, ['where'=>'wsarticle_columnid=45 and wsarticle_recommend = 1'])"}
        {volist name="list" id="vo" key="key"}
        <div>
            {$vo['wsarticle_id']}、<a href="{:sf_url('/news', $vo)}" target="_blank">{$vo['wsarticle_title']}</a>
        </div>
        {/volist}
    </div>
    <hr>
    <div>
        <h2>首页新闻、显示分类（取10条）</h2>
        {assign name="list" value=":sp_article(0, 0, 10, ['where'=>'wsarticle_columnid=45 and wsarticle_home = 1', 'cate' => true])"}
        {volist name="list" id="vo" key="key"}
        <div>
            【<a href="{:sf_url('/news', $vo['wscate'])}">{$vo['wscate']['wscate_name']}</a>】{$vo['wsarticle_id']}、<a href="{:sf_url('/news', $vo)}" target="_blank">{$vo['wsarticle_title']}</a>
        </div>
        {/volist}
    </div>
    <hr>
    <div>
        <h2>企业文化</h2>
        <div>{:sp_desc(49)}</div>
    </div>
    <hr>
    <div>
        <h2>友情链接</h2>
        {assign name="list" value=":sp_article(52)"}
        {volist name="list" id="vo" key="key"}
            {if($key > 1)}<label>&nbsp;|&nbsp;</label>{/if}
            <a href="{$vo['wsarticle_page']}" target="_blank">{$vo['wsarticle_title']}</a>
        {/volist}
    </div>

    {include file="cn/include/footer"}
    
</body>
</html>